<?php

class TestModel extends CActiveRecord
{
    public static function model($className = __CLASS__)
    {
        return parent::model($className);
    }

    public function tableName()
    {
        return 'test';
    }

    public function getTestData()
    {
        return TestModel::model()->findAll();
    }
}